#!/usr/bin/env python

'''Demonstrates how to check for the existence of PyGame.
'''

__docformat__ = 'restructuredtext'
__version__ = '$Id: example_check_pygame.py 2 2007-08-19 01:57:58Z Alex.Holkner $'

import embryo
import sys

# If PyGame is not installed or is less than version 1.7, exit immediately.
# embryo takes care of directing the user to the PyGame home page.
if not embryo.check_pygame('1.7'):
    sys.exit(1)
